DROP PROCEDURE IF EXISTS CREATE_BasicData;

DELIMITER $$

CREATE PROCEDURE CREATE_BasicData()
BEGIN
<#list BasicDataMySQL as basicData>
    <#if basicData.getMySQL()??>
        BEGIN
        DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
        BEGIN
        GET DIAGNOSTICS CONDITION 1
        @errno = MYSQL_ERRNO, @msg = MESSAGE_TEXT;
            select @errno,@msg;
        END;
        ${basicData.getMySQL()};
        END;
    </#if>
</#list>
END;
CALL CREATE_BasicData;
DROP PROCEDURE CREATE_BasicData;

$$
